package haojie.springbootdemo.service;

import haojie.springbootdemo.repository.EmployeeRepository;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    private final EmployeeRepository employeeRepository;

    public EmployeeService(EmployeeRepository employeeRepository) {
        this.employeeRepository = employeeRepository;
    }

    public String getFirstEmployeeName() {
        return employeeRepository.findFirstEmployeeName();
    }
}
